package com.jiaorui.JMSdemo;

import org.springframework.context.support.ClassPathXmlApplicationContext;



public class TopicTest_Producer{
	public static void main(String[] args) {
		String StringXML = "com/jiaorui/JMSdemo/producerXML.xml";
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(StringXML);
		TopicProducer qp = (TopicProducer) applicationContext.getBean("topicProducer");
		
//		for(int i = 0 ; i < 100; i ++){
//			qp.sendTextMessage("testaaa" + i);
//		}
		qp.sendTextMessage("打开激光");
		
		applicationContext.close();
	}
	
}
